package com.conan.spring5.aopAnno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @version 加油！！！
 * @Description
 * @Author 谷藤新一GYC
 * @Date 2022/10/21 - 21:40
 */
//增强User的另一个类
@Order(1)
@Component
@Aspect
public class PersonProxy {

    @Before("execution(* com.conan.spring5.aopAnno.User.add(..))")
    public void before(){
        System.out.println("Person.....before...");
    }
}
   